from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

wd = webdriver.Chrome()
wd.get("https://www.12306.cn/")
wd.maximize_window()
wd.implicitly_wait(5)
wd.find_element(By.XPATH,"/html/body/div[1]/div[2]/div[1]/div/div/ul/li[7]/a[2]").click()
wd.find_element(By.XPATH,'//*[@id="userName"]').send_keys('chenxiangru23n')
wd.find_element(By.XPATH,'//input[@id="passWord"]').send_keys('chen123456')
wd.find_element(By.XPATH,"//input[contains(@id,'confirmPassWord')]").send_keys('chen123456')
wd.find_element(By.XPATH,'//input[contains(@name,"loginUserDTO.name") and contains(@class,"inptxt")]').send_keys("陈祥润")
